package com.jiangyifen.robot.sdk.request;

import com.jiangyifen.robot.sdk.UUIDUtil;

public class BaseRequest<T> {

	private String id = UUIDUtil.randomUUIDNoBar();
	
	private String requestName;
	private T body;

	/**
	 * only for fastjson
	 * you will never call this constructor
	 */
	public BaseRequest() {
	}

	public BaseRequest(String requestName, T body) {
		setRequestName(requestName);
		setBody(body);
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public T getBody() {
		return body;
	}

	public void setBody(T body) {
		this.body = body;
	}

	public String getRequestName() {
		return requestName;
	}

	public void setRequestName(String requestName) {
		this.requestName = requestName;
	}

}
